package com.shtel.bss.saas.tenant.entity.repository;


import com.github.pagehelper.PageInfo;
import com.shtel.bss.saas.core.data.common.entiry.repository.IBaseRepository;
import com.shtel.bss.saas.tenant.entity.SysGlobalAuth;

import java.util.List;


/**
 * sys_global_auth仓库接口
 * @author xiezhiwei 2020-02-05 21:21
 */
public interface ISysGlobalAuthRepository extends IBaseRepository<SysGlobalAuth> {
    /**
     * 查询基础权限
     * @param sysGlobalAuth
     * @return
     */
    PageInfo<SysGlobalAuth> selectEntity(SysGlobalAuth sysGlobalAuth, int pageSize, int pageNum);

    void updateEntity(SysGlobalAuth sysGlobalAuth);

    PageInfo<SysGlobalAuth> selectEntityByTenantId(Long tenantId, int pageSize, int pageNum);

    /**
     * 查询基础权限
     * @param sysGlobalAuth
     * @return
     */
    List<SysGlobalAuth> selectEntity(SysGlobalAuth sysGlobalAuth);

    List<SysGlobalAuth> selectEntityByTenantId(Long tenantId);
}